        <?php include("header.php");?>
		<link rel="stylesheet/less" href="<?php echo ASTRA_THEME_URI; ?>css/market.less">
		<?php include("nav.php");?>
			<div class="banner">
				<div class="banner-content">
					<div class="title wow animated fadeInUp">找算法 上勒兹</div>
					<div class="tips wow animated fadeInUp">
						勒兹，开创AI视觉算法商城，算法「多快好省」，累计成熟算法1200+，覆盖100+行业，平均准确率≥90%，全新行业算法定制仅需8-12周
					</div>
				</div>
				<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/suanfa_banner.jpg" class="pic-img pc-show" />
				<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/sc_banner.jpg" class="pic-img pc-hide" />
			</div>
			<div class="marke"  style="min-height:60vh" id="F2">
				<div class="warp">
					<div class="marke-title" >算法分类</div>
					<div class="marke-type">
						<div class="item">
							<span class="list">分类</span>
							<div :class="['item-a',type_1?'item-active':'']">
							    <?php $c= get_current_category_id() ?>
								<a href="<?php echo esc_url( home_url( '/' ) ); ?>market" class="list <?php if($c == 2){ echo 'active';} ?>">全部</a>
								
								<?php
								$a= 2;
								$args=array(
								'orderby'    => 'id',
								'hide_empty' => "0",
								'child_of' => $a,//可以换为：'child_of' => '1',
								);
								$categories=get_categories($args);
								foreach($categories as $category) {
								?>
								<a href="<?php echo get_category_link( $category->term_id ) ?>#F2 " class="list <?php if($c == $category->term_id){ echo 'active';} ?>" ><?php echo $category->name; ?></a>
								<?php }?>
							</div>
							<div :class="['expand',type_1?'expand-active':'']" @click="type_1 = !type_1">{{type_1?'收起':'展开'}} <img src="<?php echo ASTRA_THEME_URI; ?>img/icon/icon_bottom_active.png"/></div>
						</div>
					</div>
					<div class="marke-list flex">
					<?php $c= get_current_category_id() ?>
					   <?php
					     global $post;
					     $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
					     /** 用WP_Query获取posts */
					     $args = array(
					         'category__in'         => $c,     // 分类id
					         'paged'                => $paged,
					     );
					     $post_list = new WP_Query($args);					      
					    ?>
						 <?php if ( $post_list->have_posts() ) : ?>
							 <?php while ( $post_list->have_posts() ) : $post_list->the_post(); ?>
								<div class="list">
									<div class="f-img">
										<a href="<?php the_permalink() ?>"><img src="<?php echo catch_that_image() ?>" /></a>
									</div>
									<div class="cont-text">
										<a href="<?php the_permalink() ?>">
											<h3 class='line-clamp'><?php the_title(); ?></h3>
										</a>
										<p><?php the_excerpt(); ?></p>
										<!-- <div class="label">
											<a>AI行为识别技术</a><i>|</i><a>AI行为识别技术</a>
										</div> -->
									</div>
								</div> 
							<?php endwhile; ?>
						  <?php endif; wp_reset_postdata();?>
					</div>
					<div class="no-data" v-if="<?php echo get_category(get_current_category_id())->count;?> == 0">
					        <img src="<?php echo ASTRA_THEME_URI; ?>img/icon/icon_none_data.png" />
					</div>
					<!--配置WP-PageNavi 分页导航代码-->
					<div style="text-align:center;padding:20px" v-if="<?php echo get_category(get_current_category_id())->count;?> > 0"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
				</div>
			</div>
		<?php include("footer.php");?>
		<script>
			new Vue({
				el: '#app',
				data: function() {
					return {
						type_1:false,
						type_2:false
					}
				},
				created() {

				},
				mounted() {
					
				},
				methods: {
					
				}
			})
		</script>
	</body>
</html>